#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int n = 0;
    int i = 0;
    int k = 0;
    int m = 0;
    while (scanf("%d", &n) != -1)
    {
        int h = 1;
        int a = 2 * n - 1;
        char arr[100] = { ' ' };
        for (n; n > 0; n--)
        {
            for (i = 0; i < a; i += 2)
            {
                if (a == 2 * n - 1 || n == 1)
                {
                    arr[i] = '*';
                    arr[h] = ' ';
                    h += 2;
                }
                else
                {
                    arr[0] = '*';
                    arr[a - 1] = '*';
                    for (k = 2; k < a - 1; k++)
                    {
                        arr[k] = ' ';
                    }
                }
            }
            for (m = 0; m < a; m++)
            {
                printf("%c", arr[m]);
            }
            printf("\n");
        }
    }
    return 0;
}